﻿<Window x:Class="CodeSHARPer.View.Dialogs.AboutView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="About CodeSHARPer" ShowInTaskbar="false"
        ResizeMode="NoResize" WindowStyle="ToolWindow" WindowStartupLocation="CenterOwner"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Grid Margin="10" Grid.Row="0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <Image Source="{DynamicResource ImageAbout}" Grid.Row="0" Grid.RowSpan="4" Grid.Column="0" />
            <TextBlock Text="{Binding AppTitle}" Grid.Column="1" Grid.Row="0" FontSize="25" Margin="5" />
            <TextBlock Grid.Column="1" Grid.Row="1" Margin="5">
                <Hyperlink NavigateUri="{Binding AppUrl,Mode=OneTime}">
                    <TextBlock Text="{Binding AppUrlDisplayString}"/>
                </Hyperlink>
            </TextBlock>
            <TextBlock Text="{Binding AppVersion}" Grid.Column="1" Grid.Row="2" Margin="5" />
            <TextBlock Text="{Binding AssemblyCopyright}" Grid.Column="1" Grid.Row="3" Margin="5" />
            
            <Label Grid.Row="4" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="3"
                   Content="CodeSHARPer uses:" />
            <ListBox Grid.Column="1" Grid.Row="4" Grid.RowSpan="2" Margin="3" BorderThickness="0"
                     ItemsSource="{Binding Modules}" />
        </Grid>

        <Button Content="_OK" Grid.Row="1" VerticalAlignment="Bottom" HorizontalAlignment="Right"
                Command="{Binding OKCommand}"
                IsDefault="True"
                IsCancel="True"
                Grid.Column="1" Padding="3" Margin="6" MinHeight="24" MinWidth="80"/>
    </Grid>
</Window>
